<!--最后修改-->
<script setup>
import UserLink from "@/components/common/link/UserLink.vue";
import {formatDate} from "@ginstone/common-utils/dist/src/utils/DateUtils";
import {toRefs} from "vue";

const props = defineProps({
  data: {type: Object},
})

const {data} = toRefs(props)
</script>

<template>
  <el-tag>
    <span>E:{{ formatDate(data.timestamp) }}</span>
    <span v-if="data.userId"> 操作人:<user-link :user-id="data.userId">{{ data.username }}</user-link></span>
  </el-tag>
</template>

<style scoped>
</style>